-module(map_test).

-compile(export_all).

-include("map.hrl").

-define(SERVER, e2d_server).

test() ->
    M = #cell{id="123",scale_factor=3,
        zone=#zone{left=112.5, right=111.8, bottom=36.59788912985787, top=40.97989806616793},
        r_layer=#raster_tile{type="jpg", data = <<12,1,3,4,3,234, 6,4>>}
        ,v_layers = [#vector_tile{features=[#feature{geometry=#geometry{type='Point', coordinates=[117.3, 38.2]}}]}]
    },
    io:format("map: ~p~n", [M]),
    
    M2 = #cell{id="321",scale_factor=3,
        zone=#zone{left=112.5, right=111.8, bottom=36.59788912985787, top=40.97989806616793},
        r_layer=#raster_tile{type="jpg", data = <<12,1,3,4,3,234, 6,4>>}
        ,v_layers = [#vector_tile{features=[#feature{geometry=#geometry_collection{type='MultiGeometry', geometries=[]}}]}]
    },
    io:format("map: ~p~n", [M2]).
